package com.yjian.controller.bean;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * Created by xuxiaobao on 2017/9/29.
 */
@Data
public class RegisterRequest {
    @NotEmpty(message = "手机号不能为空")
    @Length(min = 11,max = 11,message = "请输入正确的手机号")
    private String phone;
    @NotEmpty(message = "请输入验证码")
    private String code;
    @NotEmpty(message = "请输入密码")
    @Length(min = 6, max = 12, message = "请输入6-12位的密码")
    private String password;
    @NotEmpty(message = "请输入确认密码")
    @Length(min = 6, max = 12, message = "请输入6-12位的确认密码")
    private String confirmPassword;
}
